package com.zzns.domain;

/**
 * Created by user on 15/8/20.
 */
public final class Type {

    private Type(){};

    private final static String PAY = "2005";
    private final static String REFUND = "2004";

    private final static String CANCLE ="1";
    private final static String NO_CANCLE ="0";

    public static String valueOf(String type){
        switch (type){
            case PAY:
                return "消费";
            case REFUND:
                return "退款";
            case CANCLE:
                return "核销";
            case NO_CANCLE:
                return "未核销";
            default:
                return "未知("+type+")";
        }
    }
}
